package com.xuelang.pipeline.artifact.app.harborv2.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xiwen.zxg
 * @since 2024/7/11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ListMemberResponse {
    /**
     * the id of entity, if the member is a user, it is user_id in user table. if the member is
     * a user group, it is the user group's ID in user_group table.
     */
    private Long entityID;
    /**
     * the name of the group member.
     */
    private String entityName;
    /**
     * the entity's type, u for user entity, g for group entity.
     */
    private String entityType;
    /**
     * the project member id
     */
    private Long id;
    /**
     * the project id
     */
    private Long projectID;
    /**
     * the role id
     */
    private Long roleID;
    /**
     * the name of the role
     */
    private String roleName;
}
